import { get, post } from '../../../utils/request';

export function getActivity(id) {
  return get(`v1/events/${id}`);
}
export function getActivities() {
  return get('v1/events');
}
export function getActivityData(id) {
  return get(`v1/events/${id}/data`);
}
export function addActivityCustomer({ eventId, ...params }) {
  return post(`v1/events/${eventId}/collected-customer-data`, params);
}
export function addActivityPolicy({ eventId, ...params }) {
  return post(`v1/events/${eventId}/collected-policy-data`, params);
}
